<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<c:set var="ctx" value=" ${pageContext.request.contextPath}" />
<html>
<head>
<title>审计明细管理</title>
<script src="${ctx}/static/selectWin/employeeSelector.js?version=${applicationScope.jsVersion }" type="text/javascript"></script>
<script src="${ctx}/static/selectWin/orgSelector.js?version=${applicationScope.jsVersion }" type="text/javascript"></script>
<script type="text/javascript">

	var $grid;
	var $employeeSelector 
	$(function() {
		fn_edit();
	});
	 
	 function fn_edit() {
			
				$("#dlg-btn").show();
				$("#dlg").dialog("open").dialog("setTitle", "编辑审计明细");
			
			$employeeSelector = $("#employee").comboselector($.extend(employeeSelectOpts,{
				url : kl.ctx + "/fnd/employee/dataGrid?search_EQ_enable=1&search_EQ_org.id="+"${auditProDtl.org.id}"
			}));
			"${auditProDtl.employee.trueName}"
					&& $("#employee").comboselector("setValue",
							"${auditProDtl.employee.id}").comboselector("setText",
									"${auditProDtl.employee.trueName}"); 

			  

	}
</script>
</head>



<body>
	<div data-options="region:'center',fit:true,border:false">
		<div id="dlg" class="easyui-dialog" style="width: 580px; height: 310px; padding: 10px 20px"
			data-options="resizable:true,modal:true, buttons:'#dlg-btn',closed:true,closable:false">
			<form id="fm" method="post">
				<input type="hidden" name="id" value="${auditProDtl.id}"/>
			
				<table id="tbl">
					<tr>
						<td><label>部门:</label></td>					
						<td ><input id="org" value="${auditProDtl.org.orgName}" style="width:250px" readonly="readonly"></td>
					</tr>
					<tr>
					    <td><label>责任人:</label></td>
						<td  ><input id="employee" name="employee" data-options="required: true"></td>
					</tr>
				</table>
			</form>
			<div id="dlg-btn">
				<button id="add" type="button" class="btn btn-primary"
					onclick="formSave('#fm', null, null, '${ctx}/fnd/auditProDtl/update',function(){var i=parent.t.tabs('tabs').length-1; var title=parent.t.tabs('getTab',i).panel('options').title;alert('保存成功！自动跳转至”'+ title+'“页面');parent.t.tabs('select',i);})">
					<span class="glyphicon glyphicon-ok"></span> 保存
				</button>
				<!-- <button id="edit" type="button" class="btn btn-primary" onclick="$('#dlg').dialog('close');">
					<span class="glyphicon glyphicon-remove"></span> 取消
				</button> -->
			</div>
		</div>	
	</div>
	

			
		 
		

</body>
</html>
